﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JMailT.GMail;
using System.Diagnostics;

namespace JMailTConsole
{
    class Program
    {
        static void Main(string[] args)
        {
            //Debug.Listeners.Add(new ConsoleTracer());
            Console.WriteLine("connect gmail pop server");
            GMailPop3 gmpop3 = new GMailPop3("pop.gmail.com", 995);
            Pop3Result result = gmpop3.Connect();
            if (result.IsSuccess)
            {
                result = gmpop3.List();

                result = gmpop3.Top(1, 2);
                Console.Write(result.Message);
            }

            Console.ReadKey();
        }
    }
}
